package com.yuyou.activity.ts.service.mapper;

import com.yuyou.activity.ts.service.entity.ActivityTsUserDetail;
import com.yuyou.activity.ts.service.vo.resp.RespQuestion;
import com.yuyou.activity.ts.service.vo.resp.RespRadar;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ActivityTsUserDetailMapper {
    int deleteByPrimaryKey(Long activityTsUserDetailId);

    int insert(ActivityTsUserDetail record);

    ActivityTsUserDetail selectByPrimaryKey(Long activityTsUserDetailId);

    int updateByPrimaryKeySelective(ActivityTsUserDetail record);

    /**
     * 批量插入用户试卷题目
     * @param activityTsUserDetailList
     * @return
     */
    int batchInsertActivityTsUserDetail(List<ActivityTsUserDetail> activityTsUserDetailList);

    /**
     * 根据用户id 查找问题与答案选项
     * @param activityTsUserId
     * @return
     */
    List<RespQuestion> findQuestionAnswerByUserId(Long activityTsUserId);

    /**
     * 查找测试结果
     * @param activityTsUserId
     * @return
     */
    List<RespRadar> findExamResult(Long activityTsUserId);

}